include_directories(${PROJECT_SOURCE_DIR}/base/include)
include_directories(${PROJECT_SOURCE_DIR}/third_party/include)

link_directories(${PROJECT_SOURCE_DIR}/third_party/lib/${CMAKE_SYSTEM_PROCESSOR})
link_libraries(base gtest gtest_main)

# 添加测试
enable_testing()

# 添加shared_ring_buffer测试
add_executable(base_shared_ring_buffer_test
    base_shared_ring_buffer_test.cpp
)

# 添加memory_pool测试
add_executable(base_memory_pool_test
    base_memory_pool_test.cpp
)

# 添加blocking_queue测试
add_executable(base_block_queue_test
    base_block_queue_test.cpp
)

# 添加测试
add_test(NAME base_shared_ring_buffer_test COMMAND base_shared_ring_buffer_test)
add_test(NAME base_memory_pool_test COMMAND base_memory_pool_test)
add_test(NAME base_block_queue_test COMMAND base_block_queue_test)
